package April._16.homework.work3;
import java.io.File;

public class Main {
    public static void main(String[] args) {
        File file = new File("target");
        boolean mkdir = file.mkdir();
        File[] files = file.listFiles(new MyFileFilter());
        System.out.println("files = " + files);

        File[] files1 = file.listFiles(pathname ->
                pathname.getName().startsWith("a") && pathname.getName().endsWith(".txt"));
        System.out.println("files1 = " + files1);
    }
}

